package com.easy.frame.base.basic.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 动态菜单封装类
 *
 * @author tp
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DynamicMenuVO extends BaseTreeVO {

    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("排序")
    private Integer orderNum;

    @ApiModelProperty("路径")
    private String url;

    @ApiModelProperty("图标路径")
    private String iconUrl;

    @TableField(typeHandler = JacksonTypeHandler.class)
    @ApiModelProperty("操作权限key数组")
    private List<String> operations;

    @ApiModelProperty("唯一路径")
    private String path;

    @ApiModelProperty("父级路径")
    private String parentPath;

}
